var box = document.getElementById('box');
var good2 = document.getElementById('good2');
var good3 = document.getElementById('good3');
var good4 = document.getElementById('good4');
var good5 = document.getElementById('good5');
var jian = document.getElementById('jian');
var spans =  document.getElementsByTagName('span')[0];
box.style.width = document.documentElement.clientWidth + 'px';
box.style.height = document.documentElement.clientHeight + 'px';

// 实现我要领包包
function handleEvent(event){
	var event = event || window.event;
	newWindow = window.open('http://www.udache.com/app/mQuickReg/index?channel=10&channelId=30983&source=&sourceid=&type=&category=1','_self','width = document.documentElement.clientWidth,height = document.documentElement.clientHeight')

}
good2.addEventListener('touchstart',handleEvent,false);

// 实现朋友圈的功能
// 实现朋友圈的功能
function handleFriend(event){
	newWindow = window.open('http://192.168.0.148:8020/qiao-shuo-guang/%E6%BB%B4%E6%BB%B4%E6%89%93%E8%BD%A6%E5%85%B3%E5%8D%A1/%E5%85%B3%E5%8D%A1.html','_self','width = window.document.documentElement.clientWidth,height = window.document.documentElement.clientHeight');

}
good3.addEventListener('touchstart',handleFriend,false);

// 随机数
var arr = [68.7,72.9,83.7];
function rand(){
	var a = Math.floor(Math.random()*arr.length);
	var b = arr[a];
	return b;
}
spans.innerHTML = rand();

// 箭头
var opc = 0;
var time = setInterval(function(){
	opc += 0.01;
	if(opc >= 1){
		opc =0;
	}
	good5.style.opacity = opc;
},70)




